﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Csla;
using Csla.Data;

namespace BO
{

    [Serializable()]
    public partial class DateTargets:BusinessBaseEx
    {
        public DateTargets()
        {
            this.Clear();
        }
         
        
    #region primary field
       
         private static PropertyInfo<Int32> IDProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<Int32>("ID",true));
       
        
         public Int32 ID
        { 
            get{return GetProperty(IDProperty);}
            set{SetProperty(IDProperty, value); }
        }
       
         private static PropertyInfo<String> CompanyNameProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<String>("CompanyName",false));
       
        
         public String CompanyName
        { 
            get{return GetProperty(CompanyNameProperty);}
            set{SetProperty(CompanyNameProperty, value); }
        }
       
         private static PropertyInfo<String> CenterNameProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<String>("CenterName",false));
       
        
         public String CenterName
        { 
            get{return GetProperty(CenterNameProperty);}
            set{SetProperty(CenterNameProperty, value); }
        }
       
         private static PropertyInfo<String> DepartmentNameProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<String>("DepartmentName",false));
       
        
         public String DepartmentName
        { 
            get{return GetProperty(DepartmentNameProperty);}
            set{SetProperty(DepartmentNameProperty, value); }
        }
       
         private static PropertyInfo<Double> AmountProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<Double>("Amount",false));
       
        
         public Double Amount
        { 
            get{return GetProperty(AmountProperty);}
            set{SetProperty(AmountProperty, value); }
        }
       
         private static PropertyInfo<DateTime> BeginDateProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<DateTime>("BeginDate",false));
       
        
         public DateTime BeginDate
        { 
            get{return GetProperty(BeginDateProperty);}
            set{SetProperty(BeginDateProperty, value); }
        }
       
         private static PropertyInfo<DateTime> EndDateProperty=RegisterProperty( typeof(DateTargets), new PropertyInfo<DateTime>("EndDate",false));
       
        
         public DateTime EndDate
        { 
            get{return GetProperty(EndDateProperty);}
            set{SetProperty(EndDateProperty, value); }
        }
    #endregion 
       
        public override string GetTableName()
        {
            return "DateTargets";
         }
        
    
    
    }
}